class GameStats:
    def __init__(self, ai_game):
        self.settings = ai_game.settings
        self.high_score = 0
        self.level = 1
        self.rest_stats()

    """初始化在游戏运⾏期间可能变化的统计信息"""

    def rest_stats(self):
        self.score = 0
        self.ship_left = self.settings.ship_limit
